package com.songcha.module_bookdetail.ui.adapter

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.songcha.library_business.bean.book.BookChapterCatalogBean
import com.songcha.module_bookdetail.R

class BookCatalogAdapter(list:MutableList<BookChapterCatalogBean.DataBean>):BaseQuickAdapter<BookChapterCatalogBean.DataBean,BaseViewHolder>(R.layout.bookdetail_item_catalog,list) {
    override fun convert(holder: BaseViewHolder, item: BookChapterCatalogBean.DataBean) {
        holder.getView<TextView>(R.id.bookdetail_tv_chapter).apply {
            text=item.chapterTitle
        }
    }
}